package com.service;

import com.mypg.Info;
import org.apache.ibatis.annotations.Param;

import java.sql.Timestamp;
import java.util.List;

public interface InfoService {
    List<Info> selectAllinfo();
    Info selectInfoByinfo_id(int info_id);
    List<Info> selectInfoForinfo_table_jsp(String info_class, Timestamp start, Timestamp end,
                                           int start_row,int page_nums);
    List<Info> selectInfoByInfo_class(String info_class,String other_class);
    int selectInfo_count();
    int selectInfo_count_plus(String info_class,Timestamp timestamp_start,Timestamp timestamp_end);

    void insertInfo(Info info);

    void deleteInfoByinfo_id(int info_id);

    void updateInfoByinfo_id(Info info);
    void updateInfo_readByInfo_id(int info_id);
}
